using System;

namespace DesignPattern.Creational.AbstractFactory.Manufactor
{
    public class ManufactorCreater
    {
        public static AbstractProduct Manufactor(SelectManufactor selectManufactor)
        {
            switch (selectManufactor)
            {
                case SelectManufactor.Huawei:
                    return new Huawei();
                case SelectManufactor.Mi:
                    return new Mi();
                default:
                    throw new ArgumentException("SelectManufactor type not found");
            }
        }
    }
}